<template>
  <div class="bean-trans-wrap bg-color">
    <img class="wait-image" src="../../../assets/images/wait_confirm.png" alt />
    <p class="wait-text">等待商户确认！</p>
    <div class="trans-item">
      <van-cell-group class="trans-item-cells">
        <van-cell
          title="转让数量"
          :value="ruleForm.dou_num"
          :border="false"
        ></van-cell>
        <van-cell
          title="转让金额"
          :value="ruleForm.dou_money"
          :border="false"
        ></van-cell>
        <van-cell
          title="商户"
          :value="ruleForm.store_name"
          :border="false"
        ></van-cell>
      </van-cell-group>
    </div>

    <div class="fix-bottom-btn">
      <van-button
        type="custom-primary"
        size="large"
        block
        @click="transComplete"
        >完成</van-button
      >
    </div>
  </div>
</template>

<script>
import { Cell, CellGroup, Field, Col, Row, Button } from "vant";
export default {
  name: "beanTransComplete",
  components: {
    vanCell: Cell,
    vanCellGroup: CellGroup,
    vanField: Field,
    vanCol: Col,
    vanRow: Row,
    vanButton: Button,
  },
  data() {
    return {
      ruleForm: {
        dou_num: `${this.$route.query.dou_num}轶善豆`,
        dou_money: this.$route.query.transfer_money,
        store_id: this.$route.query.store_id,
        store_name: this.$route.query.store_name,
      },
    };
  },
  methods: {
    checkAll() {
      alert("sss");
    },
    transComplete() {
      this.$router.push({
        path: "/myAcccount",
      });
    },
  },
};
</script>

<style lang="less" scoped>
.van-hairline--top-bottom::after,
.van-hairline-unset--top-bottom::after {
  display: none;
}
.bean-trans-wrap {
  margin-bottom: 100px;
  width: 375px;
  overflow: hidden;
  min-height: calc(100% - 100px);

  .trans-item {
    width: 355px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border: none;
  }
  .trans-item-cells /deep/ .van-cell__title,
  .trans-item-cells /deep/ .van-van-cell__value {
    font-size: 16px;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
  }
  .trans-item-cells /deep/ .van-cell__value {
    font-size: 14px;
    text-align: left;
    flex: 2;
  }

  .lnie-place {
    width: 100%;
    height: 10px;
    background: rgba(241, 246, 253, 1);
  }
  .wait-image {
    width: 375px;
    height: auto;
    margin: 32px auto 16px;
  }
  p.wait-text {
    font-size: 18px;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
    line-height: 25px;
    text-align: center;
    margin-bottom: 18px;
  }
}
</style>
